load("Features.txt");
load("Info.txt");

labels = Info(:,1);
labels(labels==-1)=0;
data = [Info(:,end-3:end), Features];

# find ccl, ccr, mlol, mlor
# Info(Info(:,6)==0 & Info(:,7)==1,:)

# LEFT = 1, MLO = 0
data_ccl =  data(Info(:,6)==1 & Info(:,7)==0,:);
labels_ccl = labels(Info(:,6)==1 & Info(:,7)==0,:);
# LEFT = 0, MLO = 0
data_ccr = data(Info(:,6)==0 & Info(:,7)==0,:);
labels_ccr = labels(Info(:,6)==0 & Info(:,7)==0,:);
# LEFT = 1, MLO = 1
data_mlol = data(Info(:,6)==1 & Info(:,7)==0,:);
labels_mlol = labels(Info(:,6)==1 & Info(:,7)==0,:);
# LEFT = 0, MLO = 1
data_mlor = data(Info(:,6)==0 & Info(:,7)==1,:);
labels_mlor = labels(Info(:,6)==0 & Info(:,7)==1,:);


#Features(Info(:,7)==1,:)=[];
#Info(Info(:,7)==1,:)=[];

#malignant=Features(Info(:,1)==1,:);
#benign=Features(Info(:,1)==-1,:);

#addpath("~/Workspace/12l-rob-lab/lab5-6/src")
#td=[repmat(malignant(1:500,:),200,1);benign(1:100000,:)];
#tl=[ones(100000,1);zeros(100000,1)];

#ed=[malignant(501:end,:);benign(100001:end,:)];
#el=[ones(size(malignant(501:end,1)));zeros(size(benign(100001:end,1)))];

#net = train([],0.2,td,tl,0.1,20,[ed,el]);
#[td ed]=featureNormalize(td, ed)

